SET(TCP_COMMON_SRC 
  tcp.cpp
  tcp.h
  MensajeroTCP.h
  MensajeroTCP.cpp)

ADD_LIBRARY(tcp_library ${TCP_COMMON_SRC})
TARGET_LINK_LIBRARIES(tcp_library log_library)

ADD_EXECUTABLE(tcpemisor tcpemisor.cpp)
TARGET_LINK_LIBRARIES(tcpemisor tcp_library)

ADD_EXECUTABLE(tcpreceptor tcpreceptor.cpp)
TARGET_LINK_LIBRARIES(tcpreceptor tcp_library)

ADD_EXECUTABLE(tcpserver tcpservc.cpp)
TARGET_LINK_LIBRARIES(tcpserver tcp_library)
